import {createRouter,createWebHashHistory}  from 'vue-router'

import login from '@/view/login.vue'

const routes = [{
    path:"/",
    name:'login',
    component:login
},{
    path:"/home",
    name:'home',
    component:()=>import('../view/home.vue')
}]



const router = createRouter({
    routes,
    history:createWebHashHistory()
});


export default router